﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminSite.Master" AutoEventWireup="true" CodeBehind="ShowAgent.aspx.cs" Inherits="Agents.Admin.ShowAgent" %>
<asp:Content ID="Header" ContentPlaceHolderID="Header" runat="server">
    
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        צפייה בסוכן
    </h1>           
    <hr />       
        
    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td class="title">
                <asp:Label ID="Label1" Text="שם הסוכן:" runat="server" />
            </td>
            <td>
                <asp:Label ID="nameTxtbox" runat="server" />
            </td>
                <td class="title">
                <asp:Label ID="Label2" Text="טלפון:" runat="server" />
            </td>
            <td>
                <asp:Label ID="phoneTxtbox" runat="server" />
            </td>
        </tr>
            <tr>
            <td class="title">
                <asp:Label ID="Label3" Text="מייל:" runat="server" />
            </td>
            <td>
                <asp:Label ID="emailTxtbox" runat="server" />
            </td>
                <td class="title">
                <asp:Label ID="Label4" Text="ת.ז.:" runat="server" />
            </td>
            <td>
                <asp:Label ID="idTxtbox" runat="server" />
            </td>
        </tr>                    
            <tr>
            <td class="title">
                <asp:Label ID="Label5" Text="שם משתמש:" runat="server" />
            </td>
            <td>
                <asp:Label ID="usernameTxtbox" runat="server" />
            </td>
            <td class="title">
                <asp:Label ID="Label6" Text="איזור:" runat="server" />
            </td>
            <td>
                <asp:Label ID="areaTxtbox" runat="server" />
            </td>
    </table> 
    
    <br />
    <br />

    <table id="showTable">
        <tr class="header">
            <td></td>
            <td>שבוע</td>
            <td>חודש</td>
        </tr>
        <tr>
            <td class="header">מספר שעות עבודה</td>
            <td><asp:Label id="numberOfWorkingHoursWeek" runat="server" /></td>
            <td><asp:Label id="numberOfWorkingHoursMonth" runat="server" /></td>
        </tr>
                    
        <tr>
            <td class="header">זמן פגישה ממוצע</td>
            <td><asp:Label id="averageMeetingTimeWeek" runat="server" /></td>
            <td><asp:Label id="averageMeetingTimeMonth" runat="server" /></td>
        </tr>
        <tr>
            <td class="header">מספר הזמנות שבוצעו</td>
            <td><asp:Label id="numberOfOrdersWeek" runat="server" /></td>
            <td><asp:Label id="numberOfOrdersMonth" runat="server" /></td>
        </tr>
        <tr>
            <td class="header">סך הכל הזמנות בשקלים</td>
            <td><asp:Label id="ordersInShkalimWeek" runat="server" /></td>
            <td><asp:Label id="ordersInShkalimMonth" runat="server" /></td>
        </tr>
    </table>

    <br />
    <br />

    <asp:Label ID="Label8" Text="צפה ביומן מתאריך:" runat="server" />
    <asp:TextBox ID="txtSelectedDate" runat="server" TextMode="Date" />
    <asp:Button ID="btnWatchLog" Text="צפה" runat="server" onclick="btnWatchLog_Click" CssClass="button"/> 
    <asp:RequiredFieldValidator ID="rqField" runat="server" ControlToValidate="txtSelectedDate"
        ErrorMessage="יש לבחור תאריך" />
    <asp:Label ID="nonExist" runat="server" />            
    
    <br />   
    <br />            
    <hr />
    
    <div class="alignCenter">               
        <asp:Button ID="backBtn" Text="חזור" runat="server" 
            CausesValidation="false" onclick="backBtn_Click" CssClass="button"/>
    </div>
</asp:Content>
